#include "example.h"
#include <iomanip>
#include <iostream>
using namespace std;

void Receiver::mySlot(void)
{
    cout << setw(50) << __PRETTY_FUNCTION__ << endl;
}

void Receiver::mySlot(const string &str)
{
    cout << setw(50) << __PRETTY_FUNCTION__ << ": str = " << str << endl;
}

void Receiver::mySlot(const int &x)
{
    cout << setw(50) << __PRETTY_FUNCTION__ << ": x = " << x << endl;
}

Receiver::Receiver()
{
    connect(this, SIGNAL(mySignal(const string &)),
            SLOT(mySlot(const string &)));
    emit mySignal("Signal mySignal(const std::string & str) emmited");
}

void Sender::EmitAllSignals(void)
{
    emit mySignal();
    emit mySignal(100);
}
